fs= require "fs"
path= require 'path'

Config= ->
  this._config= require "../config.json"
  fs.watch "./config.json", (event, filename) =>
    delete require.cache[path.resolve(filename)]
    this._config= require "../config.json"
  return this

Config.prototype.getConfig= ->
  return this._config

module.exports=new Config()
